import {
  request
} from "network/request";

// 更新用户信息
export function updataUserInfo(data) {
  return request({
    url: "/bitdf/user/update/person/info",
    method: "POST",
    data
  })
}

// 修改密码
export function modifyPass(oldPassword, newPassword) {
  return request({
    url: "/bitdf/user/modify/password",
    method: "POST",
    data: {
      oldPassword,
      newPassword
    }
  })
}

// 获取用户信息 
export function getUserInfo() {
  return request({
    url: "/bitdf/user/getCurrentUser",
  })
}
